package org.world.applicaiton.annimal.query;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.mc.ddd.infrastructure.persistent.PageQueryParams;
import org.springframework.stereotype.Service;
import org.world.applicaiton.annimal.query.view.AnimalView;
import org.world.infrastructure.dao.view.AnimalViewDao;

import javax.annotation.Resource;

@Service
public class AnimalViewQueryService {
    @Resource
    private AnimalViewDao viewDao;

    public IPage<AnimalView> page(PageQueryParams pageParams) {
        return viewDao.selectPage(pageParams.toPage(), null);
    }
}
